package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_music_room_building_unlock", desc = "妙音坊建筑解锁日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "music_lock")
public class LogMusicRoomBuildingUnlock extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "建筑ID", dataAttribute = "music_lockid")
    private int buildingId;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogMusicRoomBuildingUnlock(long userId, int buildingId) {
        this.userId = userId;
        this.buildingId = buildingId;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
